package com.ruoyi.client.mapper;

import com.ruoyi.client.domain.SysHoldStock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysHoldStockMapper {
    SysHoldStock getStockBySymbol(String symbol);

    void add(SysHoldStock sysHoldStock);

    void updateNumById(@Param("num") Integer num, @Param("symbol") String symbol);

    List<SysHoldStock> listAll();

    SysHoldStock getStockBySymbolAndId(@Param("symbol") String symbol, @Param("accountId") Integer id);

}
